home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / offscreen library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.6 KB  |  64 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        offscreen library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef offscreenLibraryIncludes
  13. #define offscreenLibraryIncludes
  14.  
  15.     #ifndef graphicsTypesIncludes
  16. #include "graphics types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22.     #endif
  23.  
  24.     #ifdef __cplusplus
  25. extern "C" {
  26.     #endif
  27.  
  28. #if defined(powerc) || defined (__powerc)
  29. #pragma options align=mac68k
  30. #endif
  31. struct offscreen {
  32.     gxShape                        draw;
  33.     gxTransform                    xform;
  34.     gxViewDevice                device;
  35.     gxViewPort                    port;
  36.     gxViewGroup                    group;
  37. };
  38. #if defined(powerc) || defined(__powerc)
  39. #pragma options align=reset
  40. #endif
  41.  
  42. typedef struct viewPortBufferRecord **viewPortBuffer;
  43.  
  44.     #ifndef __cplusplus
  45. typedef struct offscreen offscreen;
  46.  
  47.     #endif
  48.  
  49. extern void CreateOffscreen(offscreen *target, gxShape bitmapShape);
  50. extern void DisposeOffscreen(offscreen *target);
  51. extern void CopyToBitmaps(gxShape target, gxShape source);
  52. extern viewPortBuffer NewViewPortBuffer(gxViewPort originalPort);
  53. extern void DisposeViewPortBuffer(viewPortBuffer target);
  54. extern boolean ValidViewPortBuffer(viewPortBuffer target);
  55. extern boolean UpdateViewPortBuffer(viewPortBuffer target);
  56. extern gxViewPort GetViewPortBufferViewPort(viewPortBuffer source);
  57. extern gxShape GetViewPortBufferShape(viewPortBuffer source);
  58.     #ifdef __cplusplus
  59. }
  60.     #endif
  61.  
  62. #endif
  63.  
  64.